package de.tum.in.eist.poll.shared.beans;

import de.tum.in.eist.poll.client.views.widgets.QuestionWidget;

public abstract class Question {
	
	private boolean optional;
	private String description;

	public Question(String description, boolean optional) {
		this.optional = optional;
		this.setDescription(description);
	}

	public boolean isOptional() {
		return optional;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}
	
	public abstract QuestionWidget getWidget();
}